home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-07-02 | 1.8 KB | 47 lines | [TEXT/pdos] |
- Apple II
- Sample Code Notes
- _____________________________________________________________________________
- Developer Technical Support
-
- #18: AccessPriv
-
- Version: 3.0 June 1990
-
- APW Components: MPW Components:
-
- AP.c AP.c
- AP.h AP.h
- UEvent.c UEvent.c
- UGlobals.c UGlobals.c
- UMenu.c UMenu.c
- UWindow.c UWindow.c
- AP.rez AP.r
- AP.Link MakeFile
- Build
- Build.r
- Full.Build
-
- This program demonstrates issuing calls to the GS/OS AppleShare File System
- Translator (AppleShare FST).
- _____________________________________________________________________________
-
- The AppleShare FST calls made by AccessPriv are made from the uWindow.c file
- and include the calls GetPrivileges, SetPrivileges, and UserInfo. Other
- System Software 5.0 features utilized in this program include resources, the
- SFMultiGet2 call for getting a folder selection from a user, static text
- controls with programmable substitution text, and the Window Manager
- ErrorWindow routine with GS/OS and toolbox calls. The workings of the
- program are mostly contained in the CurrentPrivs, NewPrivs, and ChooseFolder
- routines in the uWindow.c file and the subroutines they call. This program is
- adapted from Sample Code #2, BusyBox, which features calls to NewWindow2 and
- the newly enhanced TaskMaster.
-
- APW users need APW v.1.0, APW Tools & Interfaces v.1.1, APW C v.1.0, and Apple
- IIGS System Software 5.0.2 or later. Three APW command files, Full.Build,
- Build, and Build.r allow you to perform complete or partial rebuilds of the
- load file AccessPriv.
-
- MPW IIGS users need MPW v.3.0, MPW IIGS Tools v.1.1, and MPW IIGS C v.1.0 or
- later. The name needed by the MPW Build menu's Build option can be found in
- the MakeFile.
-